|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.register.RAReal
raar.register.RARandomReal
public class RARandomReal
Class RARandomReal represents a random real (double precision number x with 0<=x<1) in the RAAR environment. Every time you request this random's dValue, a different random number is returned. You can store the num- ber in an ordinary RAReal to have a persistent value.
| Field Summary |
|---|
| Fields inherited from class raar.register.RAReal |
|---|
TOLERANCE |
| Constructor Summary | |
|---|---|
RARandomReal()
Construct a random real. |
|
| Method Summary | |
|---|---|
double |
dValue()
Return a new random value between 0 inclusive and 1 exclusive. |
boolean |
equals(RAEqualityComparable otherMathObject)
Returns true if this real is equal to the parameter. |
boolean |
larger(RAFullComparable r)
Returns true if this real is larger than r. |
boolean |
largerEquals(RAFullComparable r)
Returns true if this real is larger than r or equals. |
boolean |
smaller(RAFullComparable r)
Returns true if this real is smaller than r. |
boolean |
smallerEquals(RAFullComparable r)
Returns true if this real is smaller than r or equals r. |
java.lang.String |
toString()
String representation of this real. |
RADataType |
value()
Return this object (for compatibility with RADataType). |
| Methods inherited from class raar.register.RAReal |
|---|
canContain, clone, getType, makeClone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RARandomReal()
| Method Detail |
|---|
public RADataType value()
throws RAException
value in interface RAAssignablevalue in interface RAMathObjectvalue in class RARealRAException
public double dValue()
throws RAException
dValue in class RARealRAExceptionpublic java.lang.String toString()
toString in class RAReal
public boolean equals(RAEqualityComparable otherMathObject)
throws RAException
equals in interface RAEqualityComparableequals in class RAReala - real...
RAException
public boolean larger(RAFullComparable r)
throws RAException
larger in interface RAFullComparablelarger in class RARealr - Another real bites the dust
RAException
public boolean smaller(RAFullComparable r)
throws RAException
smaller in interface RAFullComparablesmaller in class RARealr - Another real bites the dust
RAException
public boolean largerEquals(RAFullComparable r)
throws RAException
largerEquals in interface RAFullComparablelargerEquals in class RARealr - Another real bites the dust
RAException
public boolean smallerEquals(RAFullComparable r)
throws RAException
smallerEquals in interface RAFullComparablesmallerEquals in class RARealr - Another real bites the dust
RAException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||